package com.learn.designPatterns.createType.prototype;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-09-12 15:08
 */
public class ConcreteProtype extends Prototype{

    private String filed;

    public ConcreteProtype(String filed) {
        this.filed = filed;
    }

    @Override
    Prototype myclone() {
        return new ConcreteProtype(filed);
    }

    @Override
    public String toString() {
        return filed;
    }
}
